package indi.zhifa.expshare.class001.chemicalmatch.properties;

import lombok.Data;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.time.Duration;

@Configuration
@ConfigurationProperties(prefix = "zhifa.redis.vector")
@Data
public class VectorRedisProperties extends RedisProperties {
    Pool pool;
    public VectorRedisProperties(){
        super();
        super.setTimeout(Duration.ofSeconds(30));
        super.setConnectTimeout(Duration.ofSeconds(30));
        super.setDatabase(0);
    }
}
